package com.sky.myapplication.kotlin.kotlinActivity

import android.app.Activity
import android.os.Bundle
import android.view.View
import android.widget.Button
import com.sky.myapplication.R

/**
 * @Author: Minxp
 * @UpdateDate: 2021/7/3 0003
 * @Description: java类作用描述
 */
class ServiceKotlinActivity : Activity(),View.OnClickListener {
    lateinit var btn_start: Button
    lateinit var btn_stop: Button
    lateinit var btn_bind: Button
    lateinit var btn_unbind: Button

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_service)

        btn_start = findViewById(R.id.btn_start)
        btn_stop = findViewById(R.id.btn_stop)
        btn_bind = findViewById(R.id.btn_bind)
        btn_unbind = findViewById(R.id.btn_unbind)

        btn_start.setOnClickListener(this)
        btn_stop.setOnClickListener(this)
        btn_bind.setOnClickListener(this)
        btn_unbind.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when(v?.id){
            R.id.btn_start -> {

            }
            R.id.btn_stop -> {

            }

        }
    }
}